public class Dog extends Animal  {
   private int age;

    @Override
    public String toString() {
        return "Dog{" +
                "age=" + age +
                ", id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Dog(String id, String name, int age) {
        super(id, name);
        this.age = age;
    }

    public Dog(int age) {
        this.age = age;
    }

    public Dog() {
    }
}
